<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::hfs::HfsSegment Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d9/de8/namespacecv_1_1hfs.html">hfs</a></li><li class="navelem"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html">HfsSegment</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="../../d2/d6e/classcv_1_1hfs_1_1HfsSegment-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::hfs::HfsSegment Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="../../dc/d29/group__hfs.html">Hierarchical Feature Selection for Efficient Image Segmentation</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;opencv2/hfs.hpp&gt;</code></p>
<div class="dynheader">
Inheritance diagram for cv::hfs::HfsSegment:</div>
<div class="dyncontent">
 <div class="center">
  <img alt="" src="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.png" usemap="#cv::hfs::HfsSegment_map"/>
  <map id="cv::hfs::HfsSegment_map" name="cv::hfs::HfsSegment_map">
<area alt="cv::Algorithm" coords="0,0,122,24" href="../../d3/d46/classcv_1_1Algorithm.html" shape="rect" title="This is a base class for all more or less complex algorithms in OpenCV. "/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a597a62f1940a3f6f033e9ffcfcfdb3f0"><td align="right" class="memItemLeft" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a597a62f1940a3f6f033e9ffcfcfdb3f0">getMinRegionSizeI</a> ()=0</td></tr>
<tr class="separator:a597a62f1940a3f6f033e9ffcfcfdb3f0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a84f5d8b7395fcdff00a045100588634f"><td align="right" class="memItemLeft" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a84f5d8b7395fcdff00a045100588634f">getMinRegionSizeII</a> ()=0</td></tr>
<tr class="separator:a84f5d8b7395fcdff00a045100588634f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af4439eadfe2341b75c3659ae001bf2e9"><td align="right" class="memItemLeft" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#af4439eadfe2341b75c3659ae001bf2e9">getNumSlicIter</a> ()=0</td></tr>
<tr class="separator:af4439eadfe2341b75c3659ae001bf2e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0130788120bcbc57444002bbc68c17a8"><td align="right" class="memItemLeft" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a0130788120bcbc57444002bbc68c17a8">getSegEgbThresholdI</a> ()=0</td></tr>
<tr class="separator:a0130788120bcbc57444002bbc68c17a8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae33a76fb3fa5214bed7a5bb300a5aa03"><td align="right" class="memItemLeft" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#ae33a76fb3fa5214bed7a5bb300a5aa03">getSegEgbThresholdII</a> ()=0</td></tr>
<tr class="separator:ae33a76fb3fa5214bed7a5bb300a5aa03"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a356f95311bc8a31c0b83d9fad08ce497"><td align="right" class="memItemLeft" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a356f95311bc8a31c0b83d9fad08ce497">getSlicSpixelSize</a> ()=0</td></tr>
<tr class="separator:a356f95311bc8a31c0b83d9fad08ce497"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a47e5f8d7b5fb3e2adeb6da3aade431d7"><td align="right" class="memItemLeft" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a47e5f8d7b5fb3e2adeb6da3aade431d7">getSpatialWeight</a> ()=0</td></tr>
<tr class="separator:a47e5f8d7b5fb3e2adeb6da3aade431d7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a53fac3e2d612a11a71c10d196ab94e4b"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a53fac3e2d612a11a71c10d196ab94e4b">performSegmentCpu</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, bool ifDraw=true)=0</td></tr>
<tr class="memdesc:a53fac3e2d612a11a71c10d196ab94e4b"><td class="mdescLeft"> </td><td class="mdescRight">do segmentation with cpu This method is only implemented for reference. It is highly NOT recommanded to use it.  <a href="#a53fac3e2d612a11a71c10d196ab94e4b">More...</a><br/></td></tr>
<tr class="separator:a53fac3e2d612a11a71c10d196ab94e4b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5a7ebdd324113f4fefcd246bbb5d90ce"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a5a7ebdd324113f4fefcd246bbb5d90ce">performSegmentGpu</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, bool ifDraw=true)=0</td></tr>
<tr class="memdesc:a5a7ebdd324113f4fefcd246bbb5d90ce"><td class="mdescLeft"> </td><td class="mdescRight">do segmentation gpu  <a href="#a5a7ebdd324113f4fefcd246bbb5d90ce">More...</a><br/></td></tr>
<tr class="separator:a5a7ebdd324113f4fefcd246bbb5d90ce"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec3051481425596ce245adfe057605ef"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#aec3051481425596ce245adfe057605ef">setMinRegionSizeI</a> (int n)=0</td></tr>
<tr class="memdesc:aec3051481425596ce245adfe057605ef"><td class="mdescLeft"> </td><td class="mdescRight">: set and get the parameter minRegionSizeI. This parameter is used in the second stage mentioned above. After the EGB segmentation, regions that have fewer pixels then this parameter will be merged into it's adjacent region.  <a href="#aec3051481425596ce245adfe057605ef">More...</a><br/></td></tr>
<tr class="separator:aec3051481425596ce245adfe057605ef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae5b55d3546448628b94beab5a8c76126"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#ae5b55d3546448628b94beab5a8c76126">setMinRegionSizeII</a> (int n)=0</td></tr>
<tr class="memdesc:ae5b55d3546448628b94beab5a8c76126"><td class="mdescLeft"> </td><td class="mdescRight">: set and get the parameter minRegionSizeII. This parameter is used in the third stage mentioned above. It serves the same purpose as minRegionSizeI  <a href="#ae5b55d3546448628b94beab5a8c76126">More...</a><br/></td></tr>
<tr class="separator:ae5b55d3546448628b94beab5a8c76126"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a15637f86ecbd5ef2e944810e75fbdaa8"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a15637f86ecbd5ef2e944810e75fbdaa8">setNumSlicIter</a> (int n)=0</td></tr>
<tr class="memdesc:a15637f86ecbd5ef2e944810e75fbdaa8"><td class="mdescLeft"> </td><td class="mdescRight">: set and get the parameter numSlicIter. This parameter is used in the first stage. It describes how many iteration to perform when executing SLIC.  <a href="#a15637f86ecbd5ef2e944810e75fbdaa8">More...</a><br/></td></tr>
<tr class="separator:a15637f86ecbd5ef2e944810e75fbdaa8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0eff2a2f17a1262f6b9f3271695f071b"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a0eff2a2f17a1262f6b9f3271695f071b">setSegEgbThresholdI</a> (float c)=0</td></tr>
<tr class="memdesc:a0eff2a2f17a1262f6b9f3271695f071b"><td class="mdescLeft"> </td><td class="mdescRight">: set and get the parameter segEgbThresholdI. This parameter is used in the second stage mentioned above. It is a constant used to threshold weights of the edge when merging adjacent nodes when applying EGB algorithm. The segmentation result tends to have more regions remained if this value is large and vice versa.  <a href="#a0eff2a2f17a1262f6b9f3271695f071b">More...</a><br/></td></tr>
<tr class="separator:a0eff2a2f17a1262f6b9f3271695f071b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa0ea696e91819ee3706f8353b07d5cb0"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#aa0ea696e91819ee3706f8353b07d5cb0">setSegEgbThresholdII</a> (float c)=0</td></tr>
<tr class="memdesc:aa0ea696e91819ee3706f8353b07d5cb0"><td class="mdescLeft"> </td><td class="mdescRight">: set and get the parameter segEgbThresholdII. This parameter is used in the third stage mentioned above. It serves the same purpose as segEgbThresholdI. The segmentation result tends to have more regions remained if this value is large and vice versa.  <a href="#aa0ea696e91819ee3706f8353b07d5cb0">More...</a><br/></td></tr>
<tr class="separator:aa0ea696e91819ee3706f8353b07d5cb0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5affbf9b56a7b0189c4a4f2988df373e"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a5affbf9b56a7b0189c4a4f2988df373e">setSlicSpixelSize</a> (int n)=0</td></tr>
<tr class="memdesc:a5affbf9b56a7b0189c4a4f2988df373e"><td class="mdescLeft"> </td><td class="mdescRight">: set and get the parameter slicSpixelSize. This parameter is used in the first stage mentioned above(the SLIC stage). It describes the size of each superpixel when initializing SLIC. Every superpixel approximately has \(slicSpixelSize \times slicSpixelSize\) pixels in the beginning.  <a href="#a5affbf9b56a7b0189c4a4f2988df373e">More...</a><br/></td></tr>
<tr class="separator:a5affbf9b56a7b0189c4a4f2988df373e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa3813a0d299c006d1d7f6bcae7e54cd7"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#aa3813a0d299c006d1d7f6bcae7e54cd7">setSpatialWeight</a> (float w)=0</td></tr>
<tr class="memdesc:aa3813a0d299c006d1d7f6bcae7e54cd7"><td class="mdescLeft"> </td><td class="mdescRight">: set and get the parameter spatialWeight. This parameter is used in the first stage mentioned above(the SLIC stage). It describes how important is the role of position when calculating the distance between each pixel and it's center. The exact formula to calculate the distance is \(colorDistance + spatialWeight \times spatialDistance\). The segmentation result tends to have more local consistency if this value is larger.  <a href="#aa3813a0d299c006d1d7f6bcae7e54cd7">More...</a><br/></td></tr>
<tr class="separator:aa3813a0d299c006d1d7f6bcae7e54cd7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Public Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a827c8b2781ed17574805f373e6054ff1 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a827c8b2781ed17574805f373e6054ff1">Algorithm</a> ()</td></tr>
<tr class="separator:a827c8b2781ed17574805f373e6054ff1 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ae826127fa0f1f8d10a24841bd376f8 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a8ae826127fa0f1f8d10a24841bd376f8">~Algorithm</a> ()</td></tr>
<tr class="separator:a8ae826127fa0f1f8d10a24841bd376f8 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#aec9c965448e4dc851d7cacd3abd84cd1">clear</a> ()</td></tr>
<tr class="memdesc:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Clears the algorithm state.  <a href="../../d3/d46/classcv_1_1Algorithm.html#aec9c965448e4dc851d7cacd3abd84cd1">More...</a><br/></td></tr>
<tr class="separator:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#ab6a18f1825475643e94381697d413972">empty</a> () const</td></tr>
<tr class="memdesc:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html" title="This is a base class for all more or less complex algorithms in OpenCV. ">Algorithm</a> is empty (e.g. in the very beginning or after unsuccessful read.  <a href="../../d3/d46/classcv_1_1Algorithm.html#ab6a18f1825475643e94381697d413972">More...</a><br/></td></tr>
<tr class="separator:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a286fc82744ccab3d248aca44524266a9 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a286fc82744ccab3d248aca44524266a9">getDefaultName</a> () const</td></tr>
<tr class="separator:a286fc82744ccab3d248aca44524266a9 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#aef2ad3f4145bd6e8c3664eb1c4b5e1e6">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;fn)</td></tr>
<tr class="memdesc:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Reads algorithm parameters from a file storage.  <a href="../../d3/d46/classcv_1_1Algorithm.html#aef2ad3f4145bd6e8c3664eb1c4b5e1e6">More...</a><br/></td></tr>
<tr class="separator:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0a880744bc4e3f45711444571df47d67 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a0a880744bc4e3f45711444571df47d67">save</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename) const</td></tr>
<tr class="separator:a0a880744bc4e3f45711444571df47d67 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a1f8ad7b8add515077367fb9949a174d2">write</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const</td></tr>
<tr class="memdesc:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Stores algorithm parameters in a file storage.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a1f8ad7b8add515077367fb9949a174d2">More...</a><br/></td></tr>
<tr class="separator:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a763a62d1b03042eef7d7fc3ac6c87c79">write</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &gt; &amp;fs, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;name=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>()) const</td></tr>
<tr class="memdesc:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a763a62d1b03042eef7d7fc3ac6c87c79">More...</a><br/></td></tr>
<tr class="separator:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a8078fb9b69bbe2f23556055545ed3a20"><td align="right" class="memItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html">HfsSegment</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html#a8078fb9b69bbe2f23556055545ed3a20">create</a> (int height, int width, float segEgbThresholdI=0.08f, int minRegionSizeI=100, float segEgbThresholdII=0.28f, int minRegionSizeII=200, float spatialWeight=0.6f, int slicSpixelSize=8, int numSlicIter=5)</td></tr>
<tr class="memdesc:a8078fb9b69bbe2f23556055545ed3a20"><td class="mdescLeft"> </td><td class="mdescRight">: create a hfs object  <a href="#a8078fb9b69bbe2f23556055545ed3a20">More...</a><br/></td></tr>
<tr class="separator:a8078fb9b69bbe2f23556055545ed3a20"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_static_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Static Public Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a623841c33b58ea9c4847da04607e067b">load</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;objname=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>())</td></tr>
<tr class="memdesc:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Loads algorithm from the file.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a623841c33b58ea9c4847da04607e067b">More...</a><br/></td></tr>
<tr class="separator:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a3ba305a10d02479c13cf7d169c321547">loadFromString</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;strModel, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;objname=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>())</td></tr>
<tr class="memdesc:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Loads algorithm from a String.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a3ba305a10d02479c13cf7d169c321547">More...</a><br/></td></tr>
<tr class="separator:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#ad8c591bacb34c485f5b7a250c314fc53">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;fn)</td></tr>
<tr class="memdesc:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Reads algorithm from the file node.  <a href="../../d3/d46/classcv_1_1Algorithm.html#ad8c591bacb34c485f5b7a250c314fc53">More...</a><br/></td></tr>
<tr class="separator:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Protected Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a68eeca71617474ad3d4561786f0289d2 inherit pro_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a68eeca71617474ad3d4561786f0289d2">writeFormat</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const</td></tr>
<tr class="separator:a68eeca71617474ad3d4561786f0289d2 inherit pro_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8078fb9b69bbe2f23556055545ed3a20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8078fb9b69bbe2f23556055545ed3a20">◆ </a></span>create()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d2/de0/classcv_1_1hfs_1_1HfsSegment.html">HfsSegment</a>&gt; cv::hfs::HfsSegment::create </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>segEgbThresholdI</em> = <code>0.08f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minRegionSizeI</em> = <code>100</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>segEgbThresholdII</em> = <code>0.28f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minRegionSizeII</em> = <code>200</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>spatialWeight</em> = <code>0.6f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>slicSpixelSize</em> = <code>8</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>numSlicIter</em> = <code>5</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.hfs.HfsSegment_create(</td><td class="paramname">height, width[, segEgbThresholdI[, minRegionSizeI[, segEgbThresholdII[, minRegionSizeII[, spatialWeight[, slicSpixelSize[, numSlicIter]]]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>: create a hfs object </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">height</td><td>the height of the input image </td></tr>
    <tr><td class="paramname">width</td><td>the width of the input image </td></tr>
    <tr><td class="paramname">segEgbThresholdI</td><td>parameter segEgbThresholdI </td></tr>
    <tr><td class="paramname">minRegionSizeI</td><td>parameter minRegionSizeI </td></tr>
    <tr><td class="paramname">segEgbThresholdII</td><td>parameter segEgbThresholdII </td></tr>
    <tr><td class="paramname">minRegionSizeII</td><td>parameter minRegionSizeII </td></tr>
    <tr><td class="paramname">spatialWeight</td><td>parameter spatialWeight </td></tr>
    <tr><td class="paramname">slicSpixelSize</td><td>parameter slicSpixelSize </td></tr>
    <tr><td class="paramname">numSlicIter</td><td>parameter numSlicIter </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a597a62f1940a3f6f033e9ffcfcfdb3f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a597a62f1940a3f6f033e9ffcfcfdb3f0">◆ </a></span>getMinRegionSizeI()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::hfs::HfsSegment::getMinRegionSizeI </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.hfs_HfsSegment.getMinRegionSizeI(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a84f5d8b7395fcdff00a045100588634f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84f5d8b7395fcdff00a045100588634f">◆ </a></span>getMinRegionSizeII()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::hfs::HfsSegment::getMinRegionSizeII </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.hfs_HfsSegment.getMinRegionSizeII(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="af4439eadfe2341b75c3659ae001bf2e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4439eadfe2341b75c3659ae001bf2e9">◆ </a></span>getNumSlicIter()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::hfs::HfsSegment::getNumSlicIter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.hfs_HfsSegment.getNumSlicIter(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a0130788120bcbc57444002bbc68c17a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0130788120bcbc57444002bbc68c17a8">◆ </a></span>getSegEgbThresholdI()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual float cv::hfs::HfsSegment::getSegEgbThresholdI </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.hfs_HfsSegment.getSegEgbThresholdI(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="ae33a76fb3fa5214bed7a5bb300a5aa03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae33a76fb3fa5214bed7a5bb300a5aa03">◆ </a></span>getSegEgbThresholdII()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual float cv::hfs::HfsSegment::getSegEgbThresholdII </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.hfs_HfsSegment.getSegEgbThresholdII(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a356f95311bc8a31c0b83d9fad08ce497"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a356f95311bc8a31c0b83d9fad08ce497">◆ </a></span>getSlicSpixelSize()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::hfs::HfsSegment::getSlicSpixelSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.hfs_HfsSegment.getSlicSpixelSize(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a47e5f8d7b5fb3e2adeb6da3aade431d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47e5f8d7b5fb3e2adeb6da3aade431d7">◆ </a></span>getSpatialWeight()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual float cv::hfs::HfsSegment::getSpatialWeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.hfs_HfsSegment.getSpatialWeight(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a53fac3e2d612a11a71c10d196ab94e4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53fac3e2d612a11a71c10d196ab94e4b">◆ </a></span>performSegmentCpu()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::hfs::HfsSegment::performSegmentCpu </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>ifDraw</em> = <code>true</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.hfs_HfsSegment.performSegmentCpu(</td><td class="paramname">src[, ifDraw]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>do segmentation with cpu This method is only implemented for reference. It is highly NOT recommanded to use it. </p>
</div>
</div>
<a id="a5a7ebdd324113f4fefcd246bbb5d90ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a7ebdd324113f4fefcd246bbb5d90ce">◆ </a></span>performSegmentGpu()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::hfs::HfsSegment::performSegmentGpu </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>ifDraw</em> = <code>true</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.hfs_HfsSegment.performSegmentGpu(</td><td class="paramname">src[, ifDraw]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>do segmentation gpu </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>the input image </td></tr>
    <tr><td class="paramname">ifDraw</td><td>if draw the image in the returned <a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">Mat</a>. if this parameter is false, then the content of the returned <a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">Mat</a> is a matrix of index, describing the region each pixel belongs to. And it's data type is CV_16U. If this parameter is true, then the returned <a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">Mat</a> is a segmented picture, and color of each region is the average color of all pixels in that region. And it's data type is the same as the input image </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="aec3051481425596ce245adfe057605ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec3051481425596ce245adfe057605ef">◆ </a></span>setMinRegionSizeI()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::hfs::HfsSegment::setMinRegionSizeI </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.hfs_HfsSegment.setMinRegionSizeI(</td><td class="paramname">n</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>: set and get the parameter minRegionSizeI. This parameter is used in the second stage mentioned above. After the EGB segmentation, regions that have fewer pixels then this parameter will be merged into it's adjacent region. </p>
</div>
</div>
<a id="ae5b55d3546448628b94beab5a8c76126"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5b55d3546448628b94beab5a8c76126">◆ </a></span>setMinRegionSizeII()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::hfs::HfsSegment::setMinRegionSizeII </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.hfs_HfsSegment.setMinRegionSizeII(</td><td class="paramname">n</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>: set and get the parameter minRegionSizeII. This parameter is used in the third stage mentioned above. It serves the same purpose as minRegionSizeI </p>
</div>
</div>
<a id="a15637f86ecbd5ef2e944810e75fbdaa8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15637f86ecbd5ef2e944810e75fbdaa8">◆ </a></span>setNumSlicIter()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::hfs::HfsSegment::setNumSlicIter </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.hfs_HfsSegment.setNumSlicIter(</td><td class="paramname">n</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>: set and get the parameter numSlicIter. This parameter is used in the first stage. It describes how many iteration to perform when executing SLIC. </p>
</div>
</div>
<a id="a0eff2a2f17a1262f6b9f3271695f071b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0eff2a2f17a1262f6b9f3271695f071b">◆ </a></span>setSegEgbThresholdI()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::hfs::HfsSegment::setSegEgbThresholdI </td>
          <td>(</td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.hfs_HfsSegment.setSegEgbThresholdI(</td><td class="paramname">c</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>: set and get the parameter segEgbThresholdI. This parameter is used in the second stage mentioned above. It is a constant used to threshold weights of the edge when merging adjacent nodes when applying EGB algorithm. The segmentation result tends to have more regions remained if this value is large and vice versa. </p>
</div>
</div>
<a id="aa0ea696e91819ee3706f8353b07d5cb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0ea696e91819ee3706f8353b07d5cb0">◆ </a></span>setSegEgbThresholdII()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::hfs::HfsSegment::setSegEgbThresholdII </td>
          <td>(</td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.hfs_HfsSegment.setSegEgbThresholdII(</td><td class="paramname">c</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>: set and get the parameter segEgbThresholdII. This parameter is used in the third stage mentioned above. It serves the same purpose as segEgbThresholdI. The segmentation result tends to have more regions remained if this value is large and vice versa. </p>
</div>
</div>
<a id="a5affbf9b56a7b0189c4a4f2988df373e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5affbf9b56a7b0189c4a4f2988df373e">◆ </a></span>setSlicSpixelSize()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::hfs::HfsSegment::setSlicSpixelSize </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.hfs_HfsSegment.setSlicSpixelSize(</td><td class="paramname">n</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>: set and get the parameter slicSpixelSize. This parameter is used in the first stage mentioned above(the SLIC stage). It describes the size of each superpixel when initializing SLIC. Every superpixel approximately has \(slicSpixelSize \times slicSpixelSize\) pixels in the beginning. </p>
</div>
</div>
<a id="aa3813a0d299c006d1d7f6bcae7e54cd7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3813a0d299c006d1d7f6bcae7e54cd7">◆ </a></span>setSpatialWeight()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::hfs::HfsSegment::setSpatialWeight </td>
          <td>(</td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>w</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.hfs_HfsSegment.setSpatialWeight(</td><td class="paramname">w</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>: set and get the parameter spatialWeight. This parameter is used in the first stage mentioned above(the SLIC stage). It describes how important is the role of position when calculating the distance between each pixel and it's center. The exact formula to calculate the distance is \(colorDistance + spatialWeight \times spatialDistance\). The segmentation result tends to have more local consistency if this value is larger. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/<a class="el" href="../../de/d29/hfs_8hpp.html">hfs.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:47 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
